package cn.edu.hgu.bean;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

import com.alibaba.fastjson.annotation.JSONField;

/**
 * AdminRoleInfo entity. @author MyEclipse Persistence Tools
 */

public class AdminRoleInfo implements java.io.Serializable {

	// Fields

	private Integer id;
	private String roleName;
	private Integer pid;
	private String parentRoleName;
	private String savetext;
	private Date saveTime;
	private String remark;
	private Integer lockStatus;
	@JSONField(serialize=false)
	private Set<AdminInfo> admin = new HashSet<AdminInfo>();

	// Constructors

	/** default constructor */
	public AdminRoleInfo() {
	}

	/** full constructor */
	public AdminRoleInfo(String roleName, Integer pid, String parentRoleName,
			String savetext, Date saveTime, String remark,
			Integer lockStatus) {
		this.roleName = roleName;
		this.pid = pid;
		this.parentRoleName = parentRoleName;
		this.savetext = savetext;
		this.saveTime = saveTime;
		this.remark = remark;
		this.lockStatus = lockStatus;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getRoleName() {
		return this.roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	public Integer getPid() {
		return this.pid;
	}

	public void setPid(Integer pid) {
		this.pid = pid;
	}

	public String getParentRoleName() {
		return this.parentRoleName;
	}

	public void setParentRoleName(String parentRoleName) {
		this.parentRoleName = parentRoleName;
	}

	public String getSavetext() {
		return this.savetext;
	}

	public void setSavetext(String savetext) {
		this.savetext = savetext;
	}

	public Date getSaveTime() {
		return this.saveTime;
	}

	public void setSaveTime(Date saveTime) {
		this.saveTime = saveTime;
	}

	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Integer getLockStatus() {
		return this.lockStatus;
	}

	public void setLockStatus(Integer lockStatus) {
		this.lockStatus = lockStatus;
	}

	public Set<AdminInfo> getAdmin() {
		return admin;
	}

	public void setAdmin(Set<AdminInfo> admin) {
		this.admin = admin;
	}
	
	
}